package cn.edu.sgu.www.mhxysy.factory.impl;

import cn.edu.sgu.www.mhxysy.entity.equipment.Equipment;
import cn.edu.sgu.www.mhxysy.enums.FulingStatus;
import cn.edu.sgu.www.mhxysy.enums.WearStatus;
import cn.edu.sgu.www.mhxysy.factory.AbstractFactory;

/**
 * 装备工厂类
 * @author 沐雨橙风ιε
 * @version 1.0
 */
public class EquipmentFactory implements AbstractFactory {

    @Override
    public Equipment produce() {
        Equipment equipment = new Equipment();

        equipment.setId(null);
        equipment.setScore(0);
        equipment.setTejiId(0); // 设置特技为无
        equipment.setTexiaoId(0); // 设置特效为无
        equipment.setFailTimes(0);
        equipment.setForger(null);
        equipment.setForgeType(2);
        equipment.setRoleId(null);
        equipment.setDurability(500);
        equipment.setCategoryId(null);
        equipment.setWearStatus(WearStatus.WCD.getValue());
        equipment.setFulingStatus(FulingStatus.WFL.getValue());

        return equipment;
    }

}